﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Xiaov.SmartWeb.Application.Login"
    CodeBehind="Login.aspx.cs" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>综合统计系统</title>
    <link href="/Resources/xiaovcn/css/login.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="Resources/easyui-1.32/themes/bootstrap/easyui.css" />
    <link rel="stylesheet" type="text/css" href="Resources/easyui-1.32/themes/icon.css" />
    <script type="text/javascript" src="Resources/easyui-1.32/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="Resources/easyui-1.32/jquery.easyui.min.js"></script>
    <script type="text/javascript">
        function onPressKey() {
            if (window.event.keyCode == 13) {
                __doPostBack("BtnLogin", "");
            }
        }

        function changeCode() {
            var date = new Date();
            var myImg = document.getElementById("ImageCheck");
            var GUID = document.getElementById("h_guid");
            if (GUID != null) {
                if (GUID.value != "") {
                    myImg.src = "Resources/ValidateCode.aspx?GUID=" + GUID.innerHTML + "&flag=" + date.getMilliseconds()
                }
            }
            return false;
        }

        var data = [
             [{
                 field: 'DWBM', width: 100, title: '单位编码', rowspan: 2, formatter: function (val, rec) { return unescape(rec.DWBM); }
             },
                 { field: 'ZBBM', width: 100, title: '指标编码', rowspan: 2, formatter: function (val, rec) { return unescape(rec.ZBBM); } },
                 { field: 'NF', width: 100, title: '年份', rowspan: 2, formatter: function (val, rec) { return unescape(rec.NF); } },
                 { field: 'YF', width: 100, title: '月份', rowspan: 2, formatter: function (val, rec) { return unescape(rec.YF); } },
                 { field: 'ZBMC', width: 100, title: '指标名称', rowspan: 2, formatter: function (val, rec) { return unescape(rec.ZBMC); } },
                 { field: 'CJ', width: 100, title: '层级', rowspan: 2, formatter: function (val, rec) { return unescape(rec.CJ); } },
                 { field: 'HC', width: 100, title: '行次', rowspan: 2, formatter: function (val, rec) { return unescape(rec.HC); } },
                 { field: 'ZBDM', width: 100, title: '指标代码', rowspan: 2, formatter: function (val, rec) { return unescape(rec.ZBDM); } },
                 { field: 'JLDW', width: 100, title: '计量单位', rowspan: 2, formatter: function (val, rec) { return unescape(rec.JLDW); } },
                 { field: 'QYJY', width: 100, title: '启用禁用', rowspan: 2, formatter: function (val, rec) { return unescape(rec.QYJY); } },
                 { field: 'XSYC', width: 100, title: '显示隐藏', rowspan: 2, formatter: function (val, rec) { return unescape(rec.XSYC); } },
                 { field: 'SFKBJ', width: 100, title: '是否可编辑', rowspan: 2, formatter: function (val, rec) { return unescape(rec.SFKBJ); } },
                 { field: 'SFMJ', width: 100, title: '是否末级', rowspan: 2, formatter: function (val, rec) { return unescape(rec.SFMJ); } },
                 { field: 'COL4', width: 100, title: '本月止累计', rowspan: 2, formatter: function (val, rec) { return unescape(rec.COL4); } },
                 { title: '国内', width: 100, colspan: 3, rowspan: 1 },
                 { field: 'COL8', width: 100, title: '国外小计', rowspan: 2, formatter: function (val, rec) { return unescape(rec.COL8); } },
                 { field: 'COL9', width: 100, title: '去年同期', rowspan: 2, formatter: function (val, rec) { return unescape(rec.COL9); } },
                 { field: 'ROWID', width: 100, title: 'Rowid', rowspan: 2, formatter: function (val, rec) { return unescape(rec.ROWID); } }],
                 [
                     { field: 'COL5', width: 100, title: '小计', rowspan: 1, formatter: function (val, rec) { return unescape(rec.COL5); } },
                     { field: 'COL6', width: 100, title: '石化集团内', rowspan: 1, formatter: function (val, rec) { return unescape(rec.COL6); } },
                     { field: 'COL7', width: 100, title: '石化集团外', rowspan: 1, formatter: function (val, rec) { return unescape(rec.COL7); } }
                 ]
        ]
    </script>
</head>
<body>
    <div class="xlogin">
        <form id="form1" runat="server">
        <table class="loginp">
            <tr>
                <td>
                    <table border="0">
                        <tr>
                            <td>
                                用户名:
                            </td>
                            <td>
                                <asp:TextBox ID="tb_user" runat="server" CssClass="username" OnKeyPress="onPressKey();"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                密码:
                            </td>
                            <td>
                                <asp:TextBox ID="tb_pwd" runat="server" TextMode="Password" CssClass="password" OnKeyPress="onPressKey();"></asp:TextBox>
                            </td>
                        </tr>
                        <%if (Xiaov.SmartWeb.Infrastructure.Config.WebAppConfig.ValidateCode)
                              { %>
                        <tr>
                            <td>
                                验证码:<asp:HiddenField ID="h_guid" runat="server" />
                            </td>
                            <td>
                                <asp:TextBox ID="tb_code" runat="server" CssClass="code" OnKeyPress="onPressKey();"></asp:TextBox>
                                <asp:Image ID="ImageCheck" ClientIDMode="Static" runat="server" ImageUrl="/Resources/ValidateCode.aspx?GUID=GUID"
                                    ImageAlign="AbsMiddle" ToolTip="看不清，换一个" Style="border: solid 1px gray;" onclick="changeCode();return false;">
                                </asp:Image>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:LinkButton ID="BtnLogin" runat="server" OnClick="BtnLogin_Click" CssClass="easyui-linkbutton"
                                    iconCls="icon-applicationgo"><span>登录</span></asp:LinkButton>
                                &nbsp;&nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
